<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE HTML>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>自我学习平台</title>
    <link href="${webroot}/static/plugins/bootstrap-3.3.0/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="${webroot}/static/plugins/material-design-iconic-font-2.2.0/css/material-design-iconic-font.min.css"
          rel="stylesheet"/>
    <link href="${webroot}/static/plugins/waves-0.7.5/waves.min.css" rel="stylesheet"/>
    <link href="${webroot}/static/plugins/checkbix/css/checkbix.min.css" rel="stylesheet"/>
    <link href="${webroot}/static/css/login.css" rel="stylesheet"/>
    <link rel="shortcut icon" href="${webroot}/static/images/favicon.ico" mce_href="/favicon.ico" type="image/x-icon">
</head>
<script type="text/javascript">
    //实现iframe页面 跳转到最上层页面 功能
    window.onload = function () {
        //alert(top.location.href);
        //alert(location.href);
        if (top.location.href != location.href) {
            if (location.href.toString().indexOf("?") >= 0) {
                top.location.href = location.href + "&errorMsg=" + "Login has expired or time out, please log on again!";
            } else if (location.href.toString().indexOf("https") >= 0) {
                top.location.href = location.href;
            } else {
                top.location.href = location.href + "?errorMsg=" + "Login has expired or time out, please log on again!";
            }
        }
    }
</script>
<body>
<div class="login_title"></div>
<div id="login-window">
    <div class="input-group m-b-20">
        <div class="fg-line">
            <font id="error" color="red">${error}</font>
        </div>
    </div>
    <form id="adminForm" href="javascript:;">
        <div class="input-group m-b-20">
            <span class="input-group-addon"><i class="zmdi zmdi-account"></i></span>
            <div class="fg-line">
                <input id="username" type="text" class="form-control" name="username" placeholder="帐号" required
                       autofocus>
            </div>
        </div>
        <div class="input-group m-b-20">
            <span class="input-group-addon"><i class="zmdi zmdi-male"></i></span>
            <div class="fg-line">
                <input id="password" type="password" class="form-control" name="password" placeholder="密码" required>
            </div>
        </div>
        <div class="input-group m-b-20" style="width: 50%;">
            <span class="input-group-addon"><i class="zmdi zmdi-check-all"></i></span>
            <div class="fg-line">
                <input id="verify" type="text" class="form-control" name="verifyCode" placeholder="验证码" required>
            </div>
        </div>
        <img id="verifyNum" src="${webroot}/getVCode" onclick="getVCode(this)"/>
        <div class="clearfix">
        </div>
        <div class="checkbox">
            <input id="rememberMe" type="checkbox" class="checkbix" value="false" data-text="自动登录" name="rememberMe">
        </div>
    </form>
    <a id="login-bt" href="javascript:;" class="waves-effect waves-button waves-float"><i
            class="zmdi zmdi-arrow-forward"></i></a>

    <div class="modal fade" tabindex="-1" role="dialog" id="myModal">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">提示</h4>
                </div>
                <div class="modal-body">
                    <p id="errorMsg" style="color: red;">输入有误，请重新输入</p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭窗口</button>
                </div>
            </div>

        </div>
    </div>
    <input id="webroot" type="hidden" value="${webroot}">
</div>
<script src="${webroot}/static/plugins/jquery.1.12.4.min.js"></script>
<script src="${webroot}/static/plugins/bootstrap-3.3.0/js/bootstrap.min.js"></script>
<script src="${webroot}/static/plugins/waves-0.7.5/waves.min.js"></script>
<script src="${webroot}/static/plugins/checkbix/js/checkbix.min.js"></script>
<script type="text/javascript" src="${webroot}/static/js//PostByRSA.js" ></script>
<script type="text/javascript" src="${webroot}/static/js//Barrett.js" ></script>
<script type="text/javascript" src="${webroot}/static/js//BigInt.js" ></script>
<script type="text/javascript" src="${webroot}/static/js//RSA.1.1.js" ></script>
<script src="${webroot}/static/js/login_rsa.js"></script>
</body>
</html>